package com.example.administrator.dc.model;

import com.example.administrator.dc.Service.ListService;
import com.example.administrator.dc.Service.UserService;

import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by Administrator on 2017/9/19.
 */

public class ListModel {
    private Retrofit retrofit;
    public ListModel(){
        retrofit=new Retrofit.Builder()
                .addConverterFactory(GsonConverterFactory.create())
                .baseUrl(Contants.BASE_URL2)
                .build();

    }
    public Call Club(String userid,String gender)
    {
        ListService service=retrofit.create(ListService.class);
        return service.getResult("club");

    }
}
